package com.leen.video.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author yy
 * @since 2021-05-19
 */
@Setter
@Getter
@Entity
@Table(name = "log")
@ApiModel(value="Log对象", description="系统日志")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;


    @JSONField(format = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "创建日期")
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "description")
    private String description;

    @Column(name = "exception_detail")
    private String exceptionDetail;

    @Column(name = "log_type")
    private String logType;

    @Column(name = "method")
    private String method;

    @Column(name = "params")
    private String params;

    @Column(name = "request_ip")
    private String requestIp;

    @JSONField(format = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "修改日期")
    @Column(name = "time")
    private Long time;

    @Column(name = "username")
    private String username;

    @Column(name = "address")
    private String address;

    @Column(name = "browser")
    private String browser;

    @Column(name = "type")
    private Integer type;

    @Column(name = "uid")
    private Long uid;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "is_del")
    private Boolean isDel;


}
